home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9228 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Convert a float to an int  ( and round up/down ? )
  5. Date: 07 Mar 1996 15:13:47 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Mar7081347@qcd.lanl.gov>
  8. References: <826162763.17141@farlight.demon.co.uk>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: j shipley's message of Thu, 07 Mar 1996 01:39:23 GMT
  13.  
  14. In article <826162763.17141@farlight.demon.co.uk>
  15. j shipley <jonathan@farlight.demon.co.uk> writes:
  16.  
  17. js: I am trying to convert a variable of type float to an int.
  18. js: 
  19. js: How can this be done?
  20.  
  21. Show some code (i.e. write a _small_ complete program which deos not
  22. work. Post it here so that we can figure out what you are doing wrong.)
  23.  
  24. js: 
  25. js: I have tried     (int) variable
  26. js: i.e what I thought a cast was, but it does not work.
  27.  
  28. `does not work' is too vague a description. What happens?
  29.  
  30. Cheers
  31. Tanmoy
  32. --
  33. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  34. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  35. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  36. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  37. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  38. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  39.